﻿using Little.Soldier.SWIFT;
using Little.Soldier.SWIFT.Definition;
using System.ComponentModel;

namespace Little.Soldier.SWIFT.Messages.Category0
{
  public class MTS06 : SwiftMessage
  {
    private static SwiftMessageDefinition MessageDefinition;
    private static SwiftTagDefinition U0002;
    private static SwiftTagSubItemDefinition U0003;

    [Description("day-time")]
    public Tag173 DayTime_173
    {
      get
      {
        return new Tag173((SwiftElement) this, 0, (SwiftDefinitionElement) MTS06.U0002);
      }
    }

    [Description("day-time")]
    public Tag173 Tag173_DayTime
    {
      get
      {
        return this.DayTime_173;
      }
    }

    public MTS06()
      : base(true)
    {
    }

    public MTS06(SwiftMessage message)
      : base(message)
    {
    }

    internal override SwiftMessageDefinition MsgDefinition()
    {
      return MTS06.MessageDefinition;
    }

    protected override void InitSwiftMessageDefinition()
    {
      MTS06.MessageDefinition = new SwiftMessageDefinition("MTS06", "Logout Command");
      MTS06.U0002 = new SwiftTagDefinition("DayTime_173", "day-time");
      MTS06.U0002.TagName = "{173:";
      MTS06.U0002.Mandatory = false;
      MTS06.U0003 = new SwiftTagSubItemDefinition("DayTime", "day-time");
      MTS06.U0002.Elements.Add((SwiftDefinitionElement) MTS06.U0003);
      MTS06.MessageDefinition.Elements.Add((SwiftDefinitionElement) MTS06.U0002);
    }
  }
}
